A Novel Approach to Detect Duplicate Code Blocks to Reduce Maintenance Effort

نویسنده

  • Sonam Gupta
چکیده

It was found in many cases that a code might be a clone for one programmer but not the same for another one. This problem occurs because of inaccurate documentation. According to research, the maintainers are not aware of the original design and thus, face the difficulty of agreeing on the system’s components and their relations or understanding the work of the application. The problem also occurs because of the different team of development and maintenance resulting in more effort and time during maintenance. This paper proposes a novel approach to detect the clones at the programmer side such that if a particular code is a clone then it can be well documented. This approach will provide both the individual duplicate statements as well as the block in which they appear. The approach has been examined on seven open source systems. Keywords—Clones; Program Dependence Graph (PDG); Control Flow Graph (CFG); Abstract Syntax Tree (AST)

منابع مشابه

Code Clone Detection Using Function Based Similarities and Metrics

ode cloning is a process of coping and pasting of code fragment with or without minor alteration like renaming, addition and deletion to the code fragments in the software. The copied and pasted code fragments are known as code clones. Code cloning reduces the time and effort of the software developer but it also decreases the quality of the software like readability, changeability and increase...

متن کامل

Literature Survey of Clone Detection Techniques

Code clones are the codes which have same code in the system and so it is difficult to locate all the same codes in the system when any change is to be done. Researchers have proved that almost 70% of the effort done during maintenance is just because of the occurrence the clones in the system. A number of approaches had been given earlier to detect various types of clones [39]. This paper pres...

متن کامل

Study on Metrics Based Approach for Detecting Software Code Clones

Software engineering is an about development, design operation and maintenance of software. But there are some factors that make software maintenance difficult. Code clone is one of the factors that increase software maintenance and also cause code bloating. A code clone is nothing a similar or duplicate code in a source code or created either by replication or some modifications. Various clone...

متن کامل

A novel approach for Software Clone detection using Data Mining in Software

The Similar Program structures which recur in variant forms in software systems are code clones. Many techniques are proposed in order to detect similar code fragments in software. The software maintenance is generally helped by maintenance is generally helped by the identification and subsequent unification. When the patterns of simple clones reoccur, it is an indication for the presence of in...

متن کامل

A Literature Review of Code Clone Analysis to Improve Software Maintenance Process

Software systems are getting more complex as the system grows where maintaining such system is a primary concern for the industry. Code clone is one of the factors making software maintenance more difficult. It is a process of replicating code blocks by copy-and-paste that is common in software development. In the beginning stage of the project, developers find it easy and time consuming though...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

متن کامل
عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2016